Skip to content

[SC-6159] Add kycHash to StakeOptions for XDC masternode staking#8298

Merged
Doddanna17 merged 1 commit intomasterfrom
SC-6159-xdc-kyc-hash-stake-options
Mar 16, 2026
Merged

[SC-6159] Add kycHash to StakeOptions for XDC masternode staking#8298
Doddanna17 merged 1 commit intomasterfrom
SC-6159-xdc-kyc-hash-stake-options

Conversation

@Doddanna17
Copy link
Contributor

@Doddanna17 Doddanna17 commented Mar 16, 2026

Summary

Add kycHash?: string to StakeOptions in iStakingWallet.ts to support XDC masternode staking.

File changed: modules/sdk-core/src/bitgo/staking/iStakingWallet.ts

/** XDC masternode KYC document hash — IPFS CIDv0 (Qm...) or CIDv1 (bafy...) */
kycHash?: string;

Context

XDC masternode staking requires a 2-step flow:

  1. Upload KYC PDF → POST /kyc/upload{ hash: "QmTzQ1..." }
  2. Submit stake request with { validator, kycHash } → creates AUTHORIZE + DELEGATE txs

The kycHash is obtained from the staking-service KYC upload endpoint (PR: BitGo/staking-service#6582) and must be forwarded in the stake request body. Since stakingWallet.stake() spreads all StakeOptions fields into the POST body, only this interface change is needed.

validator?: string already exists in StakeOptions — no further changes required.

Related

Ticket: SC-6159

@Doddanna17 Doddanna17 force-pushed the SC-6159-xdc-kyc-hash-stake-options branch 2 times, most recently from a99eb82 to 100f3db Compare March 16, 2026 06:19
Add XdcStakeOptions extending StakeOptions with an optional kycHash
field, following the same pattern as TaoStakeOptions and VetStakeOptions.

The kycHash carries the IPFS CIDv0 returned by the staking-service KYC
upload endpoint before calling stake(). stakingWallet.stake() spreads
all options into the POST body, so no further changes are needed.

Ticket: SC-6159
@Doddanna17 Doddanna17 force-pushed the SC-6159-xdc-kyc-hash-stake-options branch from 100f3db to c500ebc Compare March 16, 2026 06:38
@Doddanna17 Doddanna17 marked this pull request as ready for review March 16, 2026 07:05
@Doddanna17 Doddanna17 requested review from a team as code owners March 16, 2026 07:05
@Doddanna17 Doddanna17 merged commit f22bbd4 into master Mar 16, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants